public class dsSatsObserved{
	protected int[] array;
    private static int[] countObs;
	protected int start,end,number;

	public dsSatsObserved(int maxsize){
		array = new int[maxsize];
        for (int i = 0 ; i < array.length; i++) {
            array[i] = 0;
        }
	}

    public void add (int o) {
        array[o-1]++;
    }

    public int numSats( ) {
        int observed = 0;
        for (int i = 0; i< array.length; i++) {
            if( array[i] > 0 ) {
                observed++;
            }
        }
        return observed;
    }

    public int numEpochs( int n ) {
        return array[n-1];
    }

    public int length() {
        return array.length;
    }

    public void dumpValues() {
        for(int i=0;i<array.length;i++) {
            if(array[i] > 0) {
                int prn = i+1;
                System.out.println(prn+":"+array[i]);
            }
        }
    }

}
